package com.geper.pattern.proxy;

/**
 * @author: lsy
 * @date: 2020-03-02 10:39
 * @description: HomeWorkDynamicProxyTest
 */
public class HomeWorkDynamicProxyTest {
    public static void main(String[] args) {
        HomeWorkDynamicProxyHandler handler = new HomeWorkDynamicProxyHandler();
        User user = null;
        try {
            user = (User) handler.getInstance(new ZhangSan());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        user.findLove();
    }
}
